# Created Time:    2019-04-17 14:46:11
# Modified Time:   2019-04-22 17:53:00
cmake_minimum_required(VERSION 2.7.4 FATAL_ERROR)

include_directories(
    .
    ${CMAKE_SOURCE_DIR}/common
)

# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
aux_source_directory(. DIR_LIB_SRCS)
aux_source_directory(gpio DIR_LIB_SRCS)
aux_source_directory(uart DIR_LIB_SRCS)
aux_source_directory(adc DIR_LIB_SRCS)
aux_source_directory(can DIR_LIB_SRCS)
aux_source_directory(flash DIR_LIB_SRCS)
aux_source_directory(i2c DIR_LIB_SRCS)
aux_source_directory(rtc DIR_LIB_SRCS)
aux_source_directory(spi DIR_LIB_SRCS)
aux_source_directory(timer DIR_LIB_SRCS)
aux_source_directory(wdg DIR_LIB_SRCS)

# 生成链接库
add_library (hal ${DIR_LIB_SRCS})

